<?php
namespace Addons\OaSystem\Model;
//use Think\Model;
use Think\Model\ViewModel;

class OaNoticeTaskReplyNoticeViewModel extends ViewModel{
    public $viewFields = array(
        'OaNoticeTaskReply'=>array('id','receiver','sender','noticeid','time','pid','is_read'),
        'OaNotice'=>array(
            'type',
            'title',
            'details',
            'from_who',
            'creater',
            'fileids',
            'leader',
            'to_users',
            'status',
            '_on'=>'OaNoticeTaskReply.noticeid=OaNotice.id'),
        'OaEmployee'=>array(
            'name'=>'sendername',
            '_on'=>'OaNoticeTaskReply.sender=OaEmployee.id'),
    );
}
?>